package com.campus.common.userRole.service.userRoleImpl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.campus.common.result.Result;
import com.campus.common.userRole.job.entity.UserRole;
import com.campus.common.userRole.mapper.UserRoleMapper;
import com.campus.common.userRole.service.UserRoleService;
import org.springframework.stereotype.Service;

@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {
    @Override
    public Result addUserRole(UserRole userRole) {
        int i=baseMapper.insert(userRole);
        if(i>0){
            return Result.success();
        }
        return Result.fail("插入失败");
    }
}
